import { get,post } from "../../utils/request"
import { addtype } from "./type";
// 报修列表
export const getquestions = (data:object) =>{ 
    return get('questions/list',data);
}
// 保修添加
export const questionsadd = (data:addtype) =>{ 
    return post('questions/add',data);
}
// 单删
export const questionsdelete = (id:number) =>{ 
    return get('questions/delete',{id:id});
}
// 多删
export const questionsdeleteall = (ids:[]) =>{ 
    return post('questions/deleteall',{ids});
}
// 状态
export const questionstatelist = () =>{ 
    return get('questionstate/list',{psize:10});
}
// 类型
export const questionstypelist = () =>{ 
    return get('questiontype/list',{psize:10});
}

